import fetch from '@/utils/fetch'

export function getClientList(query) {
  return fetch({
    url: '/api/user/list',
    method: 'post',
    data: query
  })
}

export function editClientList(query) {
  return fetch({
    url: '/api/user/update',
    method: 'put',
    data: query
  })
}

export function addClientList(query) {
  return fetch({
    url: '/api/user',
    method: 'post',
    data: query
  })
}

export function delClientList(id) {
  return fetch({
    url: `/api/user/delete/${id}`,
    method: 'delete'
  })
}
